#pragma once
#include "standard/standard.h"
#include "standard/stdafx.h"
#define SIZE  128
#define PATHLEN 256

 void make_digest(char *md5str, const unsigned char *digest);
 void make_digest_ex(char *md5str, const unsigned char *digest, int len);
 void md5(char* md5str, const char* arg);


STANDARD_API bool move_uploaded_file(const char* src, const char* desc);
STANDARD_API unsigned long int getfilesize(const char *filename);
STANDARD_API int getfile(char *path);
STANDARD_API int dirname(char *dir, char *str);
//STANDARD_API_C const std::string filepath_cat(const std::string& s1, const std::string& s2);
STANDARD_API  std::string filepath_cat(const std::string& s1, const std::string& s2);
STANDARD_API void load_file(std::string& s, std::ifstream& readf);
STANDARD_API int file_exists(const char* filename);
STANDARD_API int checkFileEmpty(const char* filename);
STANDARD_API int removedir (const char *fullfile);
STANDARD_API  std::string getrootdir();
STANDARD_API int runlog(std::string msg, bool flag);

 int runlog(std::string msg);
